//
//  DeteManager.h
//  KEREN
//
//  Created by MW on 2023/4/6.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface DeteManager : NSObject
@property (nonatomic, assign) NSInteger currentTime;
+ (instancetype)shareInstance;
//获取当天时间戳
- (NSInteger)getCurrentDay;
//获取当天前多少天的时间戳
- (NSInteger)getLastDay:(int)lastcount;
-(NSInteger)monthDayWithYear:(NSInteger) year month:(NSInteger) month;
-(NSString *)timeFormatted:(NSInteger)totalSeconds;
-(NSString *)timeFormathhmm:(NSInteger)totalSeconds;
-(NSString *)timeFormatMMddhhmm:(NSInteger)totalSeconds;
-(NSString *)timeFormatYYYYMMdd:(NSInteger)totalSeconds;
- (NSString *)lastDay:(NSInteger)index AndType:(NSInteger)type;
- (NSString *)getTodayStr;
- (NSInteger)getDay:(NSString *)deteStr;
//-(NSString *)getHexByDecimal:(NSDecimalNumber *)decimal;
-(NSString *)timeFormatHHmmss:(NSInteger)totalSeconds;
-(NSInteger)monthDayWithdeteStr:(NSString *)deteStr;
-(NSInteger)monthDayWithendDeteStr:(NSString *)deteStr;
@end

NS_ASSUME_NONNULL_END
